import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
import Agreement from "../views/Agreement.vue";
import NotFound from "../views/NotFound.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
    redirect: "/agreement",
    children: [
      {
        path: "/agreement",
        name: "Home",
        component: Agreement,
      },
      {
        path: "/notFound",
        name: "Home",
        component: NotFound,
      },
    ],
  },
];

const router = new VueRouter({
  mode: "hash",
  routes,
});

export default router;
